home *** CD-ROM | disk | FTP | other *** search
/ Game.EXE 2005 November / Game.EXE_11_2005_DVD.iso / Flash Games / Robo Farmer / robofarmer.swf / scripts / frame_286 / DoAction.as
Encoding:
Text File  |  2005-09-23  |  5.7 KB  |  175 lines

  1. function GlockChange()
  2. {
  3.    _root.pgunname = "Glock";
  4.    _root.pgunactive = 2;
  5.    _root.pguncap = 12 + _root.glockinccap;
  6.    _root.pgunrounds = _root.glockrounds;
  7.    _root.rounds = _root.pgunrounds;
  8.    _root.pgundamage = 5 + _root.glockincdam;
  9.    _root.pgunreloadpos = 10;
  10.    _root.pgunbulletexitr = 65;
  11.    _root.pgunbulletexitl = 30;
  12.    _root.clips = "--";
  13.    _root.pshottype = "Single";
  14.    _root.pbulletpos = 1;
  15.    _root.glockicon.gotoAndStop(2);
  16.    _root.thompsonicon.gotoAndStop(1);
  17.    _root.shotgunicon.gotoAndStop(1);
  18.    _root.deagleicon.gotoAndStop(1);
  19.    _root.AK47icon.gotoAndStop(1);
  20. }
  21. function ThompsonChange()
  22. {
  23.    _root.pgunname = "Thompson";
  24.    _root.pgunactive = 3;
  25.    _root.pguncap = 30 + _root.thompsoninccap;
  26.    _root.pgunrounds = _root.thompsonrounds;
  27.    _root.rounds = _root.pgunrounds;
  28.    _root.pgundamage = 8 + _root.thompincdam;
  29.    _root.pgunreloadpos = 10;
  30.    _root.pgunbulletexitr = 65;
  31.    _root.pgunbulletexitl = 30;
  32.    _root.clips = _root.ptclips;
  33.    _root.pshottype = "Single";
  34.    _root.pbulletpos = 2;
  35.    _root.glockicon.gotoAndStop(1);
  36.    _root.thompsonicon.gotoAndStop(2);
  37.    _root.shotgunicon.gotoAndStop(1);
  38.    _root.deagleicon.gotoAndStop(1);
  39.    _root.AK47icon.gotoAndStop(1);
  40. }
  41. function ShotgunChange()
  42. {
  43.    _root.pgunname = "Shotgun";
  44.    _root.pgunactive = 4;
  45.    _root.pguncap = 7 + _root.shotguninccap;
  46.    _root.pgunrounds = _root.shotgunrounds;
  47.    _root.rounds = _root.pgunrounds;
  48.    _root.pgundamage = 25 + _root.shotgunincdam;
  49.    _root.pgunreloadpos = 21;
  50.    _root.pgunbulletexitr = 65;
  51.    _root.pgunbulletexitl = 30;
  52.    _root.clips = _root.ptclips;
  53.    _root.pshottype = "Single";
  54.    _root.pbulletpos = 3;
  55.    _root.glockicon.gotoAndStop(1);
  56.    _root.thompsonicon.gotoAndStop(1);
  57.    _root.shotgunicon.gotoAndStop(2);
  58.    _root.deagleicon.gotoAndStop(1);
  59.    _root.AK47icon.gotoAndStop(1);
  60. }
  61. function DeagleChange()
  62. {
  63.    _root.pgunname = "Desert Eagle";
  64.    _root.pgunactive = 5;
  65.    _root.pguncap = 7 + _root.deagleinccap;
  66.    _root.pgunrounds = _root.deaglerounds;
  67.    _root.rounds = _root.pgunrounds;
  68.    _root.pgundamage = 15 + _root.deagleincdam;
  69.    _root.pgunreloadpos = 16;
  70.    _root.pgunbulletexitr = 65;
  71.    _root.pgunbulletexitl = 30;
  72.    _root.clips = _root.ptclips;
  73.    _root.pshottype = "Single";
  74.    _root.pbulletpos = 4;
  75.    _root.glockicon.gotoAndStop(1);
  76.    _root.thompsonicon.gotoAndStop(1);
  77.    _root.shotgunicon.gotoAndStop(1);
  78.    _root.deagleicon.gotoAndStop(2);
  79.    _root.AK47icon.gotoAndStop(1);
  80. }
  81. function AK47Change()
  82. {
  83.    _root.pgunname = "AK 47";
  84.    _root.pgunactive = 6;
  85.    _root.pguncap = 35 + _root.ak47inccap;
  86.    _root.pgunrounds = _root.ak47rounds;
  87.    _root.rounds = _root.pgunrounds;
  88.    _root.pgundamage = 28 + _root.ak47incdam;
  89.    _root.pgunreloadpos = 10;
  90.    _root.pgunbulletexitr = 65;
  91.    _root.pgunbulletexitl = 30;
  92.    _root.clips = _root.ptclips;
  93.    _root.pshottype = "Single";
  94.    _root.pbulletpos = 5;
  95.    _root.glockicon.gotoAndStop(1);
  96.    _root.thompsonicon.gotoAndStop(1);
  97.    _root.shotgunicon.gotoAndStop(1);
  98.    _root.deagleicon.gotoAndStop(1);
  99.    _root.AK47icon.gotoAndStop(2);
  100. }
  101. stop();
  102. sndlaserbeam = new Sound();
  103. sndlaserbeam.attachSound("Snd Laser Beam");
  104. sndmouthclose = new Sound();
  105. sndmouthclose.attachSound("Snd Colt 45");
  106. sndthompsonburst = new Sound();
  107. sndthompsonburst.attachSound("Snd Thompson Burst");
  108. sndmauserrifleshot = new Sound();
  109. sndmauserrifleshot.attachSound("Snd Mauser Rifle Shot");
  110. sndgorebastard_sifha = new Sound();
  111. sndgorebastard_sifha.attachSound("Snd GoreBastard_MP");
  112. sndgorebastard_btm = new Sound();
  113. sndgorebastard_btm.attachSound("Snd GoreBastard_BTM");
  114. sndthwap = new Sound();
  115. sndthwap.attachSound("Snd Thwap");
  116. sndexplosion = new Sound();
  117. sndexplosion.attachSound("Snd Explosion");
  118. sndcannon = new Sound();
  119. sndcannon.attachSound("Snd Cannon");
  120. sndm1garand = new Sound();
  121. sndm1garand.attachSound("Snd M1 Garand Shot");
  122. sndexplode = new Sound();
  123. sndexplode.attachSound("Snd Explode");
  124. sndblipup = new Sound();
  125. sndblipup.attachSound("Snd Blip Up");
  126. sndshutter = new Sound();
  127. sndshutter.attachSound("Snd Shield Up");
  128. sndclocktick = new Sound();
  129. sndclocktick.attachSound("Snd Clock Tick");
  130. snddoorlatch = new Sound();
  131. snddoorlatch.attachSound("Snd Door Latch");
  132. snddoorclose = new Sound();
  133. snddoorclose.attachSound("Snd Door Close");
  134. sndthump = new Sound();
  135. sndthump.attachSound("Snd Thump");
  136. sndglass = new Sound();
  137. sndglass.attachSound("Snd Glass");
  138. sndphone = new Sound();
  139. sndphone.attachSound("Snd Phone");
  140. sndbag = new Sound();
  141. sndbag.attachSound("Snd Bag");
  142. sndmatch = new Sound();
  143. sndmatch.attachSound("Snd Match");
  144. sndmac11shot = new Sound();
  145. sndmac11shot.attachSound("Snd MAC11 Shot");
  146. sndmetalstomp = new Sound();
  147. sndmetalstomp.attachSound("Snd Metal Stomp");
  148. sndmetalhit = new Sound();
  149. sndmetalhit.attachSound("Snd Metal Hit");
  150. sndglockshot = new Sound();
  151. sndglockshot.attachSound("Snd Glock Shot");
  152. sndthompsonshot = new Sound();
  153. sndthompsonshot.attachSound("Snd Thompson Single Shot");
  154. sndshieldup = new Sound();
  155. sndshieldup.attachSound("Snd Shield Up 02");
  156. sndshielddown = new Sound();
  157. sndshielddown.attachSound("Snd Shield Down");
  158. sndclick01 = new Sound();
  159. sndclick01.attachSound("Snd Click 01");
  160. sndreload = new Sound();
  161. sndreload.attachSound("Snd M1 Garand Reload");
  162. sndreload02 = new Sound();
  163. sndreload02.attachSound("Snd Thompson Reload");
  164. sndshotgunshot = new Sound();
  165. sndshotgunshot.attachSound("Snd Single Shotgun Shot");
  166. sndshotguncock = new Sound();
  167. sndshotguncock.attachSound("Snd Shotgun Cock");
  168. snddeserteagleshot = new Sound();
  169. snddeserteagleshot.attachSound("Snd Desert Eagle Shot");
  170. sndrifleshot = new Sound();
  171. sndrifleshot.attachSound("Snd Rifle Shot");
  172. _root.hatpos = 1;
  173. _root.musicoff = false;
  174. _root.crosshairtype = 1;
  175.